class Luhu implements Car{
    String color = "黄色";
    int price = 900000;

    @Override
    public String getName(){
        return color+"路虎";
    }


    @Override
    public int getPrice(){
        if(color.equals("绿色"))
            price += 30000;

        return price;
    }

    public Luhu(String color){
        this.color = color;
    }
}
